Skip to content

fix(sdk): preserve tunnel timeout after failed pause - #194

Merged
rcyw merged 1 commit into
inclusionAI:developfrom
rcyw:fix/reverse-tunnel-pause-timeout
Nov 30, 2026
Merged

rcyw merged 1 commit into
inclusionAI:developfrom
rcyw:fix/reverse-tunnel-pause-timeout

Conversation

@rcyw

@rcyw rcyw commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

Preserve the active TunnelClient's HTTP timeout when a failed pause() leaves a sandbox running and AKernel rebinds its reverse tunnel. The replacement client inherits the resolved HTTPX timeouts before it starts. AKernel continues to report the pause error to the caller.

The regression covers a snapshot with a confirmed 3600-second timeout when the caller omits the timeout or supplies a different value. It also covers a fractional process default. This is the follow-up to the issue found while validating #193. Reproduction in #193

Verification

Reuse the active TunnelClient HTTP timeout when a failed pause rebinds
a running sandbox. Cover snapshot inheritance, an ignored restore
override, and fractional process defaults through the native ADX SDK.

Signed-off-by: wayne <rcywjo@gmail.com>
@rcyw

rcyw commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator Author

Maintenance review of e6fff63e6635258329d0f6e9be760e9adb3c4609.

The recovery policy is sound. A failed pause should restore the effective timeout of the client that had been running. A snapshot's confirmed value and a fractional process default both survive recovery. The rebind remains conditional on the sandbox reporting running, and the caller still receives the original pause error.

I checked the actual HTTPX initialization in the released ADX rc15 client using simulated control responses. The replacement client's connect, read, write, and pool timeouts all stayed at 3600 seconds with either an omitted or a different restore input. A 37.5-second process default also carried over, and a sandbox reporting paused kept its tunnel stopped.

This is reasonable for the pinned ADX adapter. The remaining maintenance dependency is the native TunnelClient._http_timeout field. Keep the rollback regression when updating the adx-environment pin, including checking the timeout on the initialized HTTP client. A public API for carrying effective timeout configuration across native clients would be the natural replacement for the field access.

@rcyw
rcyw merged commit 909096a into inclusionAI:develop Nov 30, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants